/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 实施场所分类(餐桌分类)
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TExePosCatalog")
public class TExePosCatalog implements Serializable{

	private static final long serialVersionUID = 1L;

	private String PosCatalogID;//分类编号CHAR(15)PK
	
	private String Des;//说明VARCHAR(512)
	
	private String Name;//分类名称VARCHAR(256)

	private Set<TExePos> TExePoss=new HashSet<TExePos>(0);//
	
	public TExePosCatalog(){}
	
	public TExePosCatalog(String posCatalogID) {
		super();
		PosCatalogID = posCatalogID;
	}

	@Id
	@Column(name = "PosCatalogID",length=15)
	public String getPosCatalogID() {
		return PosCatalogID;
	}

	public void setPosCatalogID(String posCatalogID) {
		PosCatalogID = posCatalogID;
	}

	@Column(name = "Des",length=512)
	public String getDes() {
		return Des;
	}

	public void setDes(String des) {
		Des = des;
	}

	@Column(name = "Name",length=256)
	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}
	
	@OneToMany(mappedBy="TExePosCatalog")
	@JoinColumn(name="PosCatalogID")
	public Set<TExePos> getTExePoss() {
		return TExePoss;
	}

	public void setTExePoss(Set<TExePos> TExePoss) {
		this.TExePoss = TExePoss;
	}
}
